.class public Lcom/xingbook/audio/a/f;
.super Lcom/xingbook/park/a/e;


# instance fields
.field private f:Lcom/xingbook/audio/b/a;

.field private g:Lcom/xingbook/audio/d/l;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Lcom/xingbook/audio/d/l;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/xingbook/park/a/e;-><init>(Landroid/app/Activity;)V

    iput-object p2, p0, Lcom/xingbook/audio/a/f;->g:Lcom/xingbook/audio/d/l;

    return-void
.end method


# virtual methods
.method public a(IZ)Lcom/xingbook/park/c/a/n;
    .locals 6

    const/4 v5, 0x1

    const/4 v4, 0x0

    invoke-static {p1}, Lcom/xingbook/c/t;->g(I)I

    move-result v0

    invoke-static {p1}, Lcom/xingbook/c/t;->e(I)Z

    move-result v1

    const/16 v2, 0x50

    if-ne v0, v2, :cond_2

    if-eqz v1, :cond_1

    new-instance v0, Lcom/xingbook/audio/d/m;

    iget-object v1, p0, Lcom/xingbook/audio/a/f;->b:Landroid/app/Activity;

    iget v2, p0, Lcom/xingbook/audio/a/f;->a:F

    invoke-direct {v0, v1, v2, p2}, Lcom/xingbook/audio/d/m;-><init>(Landroid/content/Context;FZ)V

    move-object v1, v0

    :goto_0
    if-eqz v1, :cond_0

    instance-of v0, v1, Lcom/xingbook/service/download/m;

    if-eqz v0, :cond_0

    iget-object v2, p0, Lcom/xingbook/audio/a/f;->d:Ljava/util/ArrayList;

    new-instance v3, Ljava/lang/ref/WeakReference;

    move-object v0, v1

    check-cast v0, Lcom/xingbook/service/download/m;

    invoke-direct {v3, v0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_0
    return-object v1

    :cond_1
    new-instance v0, Lcom/xingbook/audio/d/g;

    iget-object v1, p0, Lcom/xingbook/audio/a/f;->b:Landroid/app/Activity;

    iget v2, p0, Lcom/xingbook/audio/a/f;->a:F

    iget-object v3, p0, Lcom/xingbook/audio/a/f;->g:Lcom/xingbook/audio/d/l;

    invoke-direct/range {v0 .. v5}, Lcom/xingbook/audio/d/g;-><init>(Landroid/app/Activity;FLcom/xingbook/audio/d/l;Lcom/xingbook/park/ui/o;Z)V

    move-object v1, v0

    goto :goto_0

    :cond_2
    const/16 v2, 0x40

    if-ne v0, v2, :cond_5

    if-eqz v1, :cond_3

    new-instance v0, Lcom/xingbook/audio/d/m;

    iget-object v1, p0, Lcom/xingbook/audio/a/f;->b:Landroid/app/Activity;

    iget v2, p0, Lcom/xingbook/audio/a/f;->a:F

    invoke-direct {v0, v1, v2, p2}, Lcom/xingbook/audio/d/m;-><init>(Landroid/content/Context;FZ)V

    move-object v1, v0

    goto :goto_0

    :cond_3
    const/16 v0, 0x42

    if-ne p1, v0, :cond_4

    new-instance v0, Lcom/xingbook/audio/d/e;

    iget-object v1, p0, Lcom/xingbook/audio/a/f;->b:Landroid/app/Activity;

    iget v2, p0, Lcom/xingbook/audio/a/f;->a:F

    invoke-direct {v0, v1, v2}, Lcom/xingbook/audio/d/e;-><init>(Landroid/app/Activity;F)V

    move-object v1, v0

    goto :goto_0

    :cond_4
    new-instance v0, Lcom/xingbook/audio/d/g;

    iget-object v1, p0, Lcom/xingbook/audio/a/f;->b:Landroid/app/Activity;

    iget v2, p0, Lcom/xingbook/audio/a/f;->a:F

    iget-object v3, p0, Lcom/xingbook/audio/a/f;->g:Lcom/xingbook/audio/d/l;

    invoke-direct/range {v0 .. v5}, Lcom/xingbook/audio/d/g;-><init>(Landroid/app/Activity;FLcom/xingbook/audio/d/l;Lcom/xingbook/park/ui/o;Z)V

    move-object v1, v0

    goto :goto_0

    :cond_5
    move-object v1, v4

    goto :goto_0
.end method

.method public a()V
    .locals 3

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/audio/a/f;->f:Lcom/xingbook/audio/b/a;

    invoke-virtual {p0}, Lcom/xingbook/audio/a/f;->k()I

    move-result v0

    const/16 v1, 0x40

    if-eq v0, v1, :cond_0

    const/16 v1, 0x41

    if-eq v0, v1, :cond_0

    const/16 v1, 0x50

    if-ne v0, v1, :cond_2

    :cond_0
    new-instance v0, Lcom/xingbook/audio/b/a;

    invoke-virtual {p0}, Lcom/xingbook/audio/a/f;->k()I

    move-result v1

    invoke-static {v1}, Lcom/xingbook/c/t;->c(I)I

    move-result v1

    invoke-direct {v0, v1}, Lcom/xingbook/audio/b/a;-><init>(I)V

    iput-object v0, p0, Lcom/xingbook/audio/a/f;->f:Lcom/xingbook/audio/b/a;

    iget-object v0, p0, Lcom/xingbook/audio/a/f;->f:Lcom/xingbook/audio/b/a;

    invoke-virtual {p0}, Lcom/xingbook/audio/a/f;->l()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/audio/b/a;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/xingbook/audio/a/f;->f:Lcom/xingbook/audio/b/a;

    invoke-virtual {p0}, Lcom/xingbook/audio/a/f;->m()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/audio/a/f;->f:Lcom/xingbook/audio/b/a;

    invoke-virtual {v2}, Lcom/xingbook/audio/b/a;->s()I

    move-result v2

    invoke-static {v1, v2}, Lcom/xingbook/audio/b/a;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/audio/b/a;->a(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/xingbook/audio/a/f;->j()Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_2

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_1
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_3

    :cond_2
    return-void

    :cond_3
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    instance-of v2, v0, Lcom/xingbook/audio/b/b;

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/xingbook/audio/a/f;->f:Lcom/xingbook/audio/b/a;

    check-cast v0, Lcom/xingbook/audio/b/b;

    invoke-virtual {v2, v0}, Lcom/xingbook/audio/b/a;->a(Ljava/lang/Object;)V

    goto :goto_0
.end method

.method public b()Lcom/xingbook/audio/b/a;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/audio/a/f;->f:Lcom/xingbook/audio/b/a;

    return-object v0
.end method
